var status = -1;
var selectionLog = [];

function start(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            qm.updateInfoQuest(26011, "");
            qm.forceStartQuest(31800, "");
            qm.curNodeEventEnd(true);
            qm.eventSKill(0);
            qm.setInGameDirectionMode(true, false, true);
            qm.inGameDirectionEvent_AskAnswerTime(1000)
        } else {
            if (status === a++) {
                qm.sendNormalTalk("既然获得了黑暗力量，那就应该用用看啊。", 17, 0, false, true)
            } else {
                if (status === a++) {
                    qm.inGameDirectionEvent_AskAnswerTime(900)
                } else {
                    if (status === a++) {
                        qm.getTopMsgFont("升级时就能提高技能等级，你可以将技能登录在快捷栏上。快捷键 [K]", 3, 20, 20, 0, 0);
                        qm.inGameDirectionEvent_AskAnswerTime(1500)
                    } else {
                        if (status === a++) {
                            qm.openUIWithOption(3, 27001201);
                            qm.inGameDirectionEvent_AskAnswerTime(1500)
                        } else {
                            if (status === a++) {
                                qm.sendNormalTalk("将黑暗降临放入快捷键中，消灭眼前的#b10只蓝水灵#k吧。", 17, 0, false, true)
                            } else {
                                if (status === a++) {
                                    qm.inGameDirectionEvent_AskAnswerTime(600)
                                } else {
                                    if (status === a++) {
                                        qm.inGameDirectionEvent_AskAnswerTime(900)
                                    } else {
                                        if (status === a++) {
                                            qm.effect_OnUserEff("UI/tutorial.img/8");
                                            qm.forceStartQuest(25561, "");
                                            qm.eventSKill(0);
                                            qm.setInGameDirectionMode(false, true, false);
                                            qm.forceStartQuest(25506, "240010900");
                                            qm.forceCompleteQuest();
                                            qm.dispose()
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

function stage0(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            var e = qm.getQuest();
            qm.askYesNo("这个任务的依次对话脚本还没有修复哦。它的脚本位于： #b 脚本/任务/25561.js#k\r\n\r\n如果你有兴趣，欢迎一起来修复！\r\n\r\n那么现在，你要立刻开始这个任务吗？")
        } else {
            if (status == a++) {
                qm.forceStartQuest();
                qm.dispose()
            }
        }
    }
}

function end(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            var e = qm.getQuest();
            qm.askYesNo("这个任务的结束脚本还没有修复哦。它的脚本位于： #b /脚本/任务/#e" + e + "#n.js#k\r\n\r\n如果你有兴趣，欢迎一起来修复！\r\n\r\n那么现在，你要立刻完成这个任务吗？")
        } else {
            if (status == a++) {
                qm.forceCompleteQuest();
                qm.dispose()
            }
        }
    }
};